<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>thymeleaf基础知识</title>
</head>
<body>
thymeleaf if条件判断
<hr>
<span th:if="${sex} == '男'">
	性别：男
</span>
<span th:if="${sex} == '女'">
	性别：女
</span>
thymeleaf switch条件判断
<hr>
<div th:switch="${id}">
	<span th:case="1">id为1</span>
	<span th:case="2">id为2</span>
	<span th:case="3">id为3</span>
	<span th:case="4">id为4</span>
</div>
thymeleaf th:each遍历list
<hr>
<ul th:each="str : ${list}">
	<li th:text="${str}"></li>
</ul>
thymeleaf th:each遍历map
<hr>
<ul th:each="maps : ${map}">
	<li th:each="entry : ${maps}" th:text="${entry.value}"></li>
</ul>
thymeleaf 域对象操作
<hr>
httpServletRequest:<span th:text="${#httpServletRequest.getAttribute('req')}"></span><br>
session:<span th:text="${session.ses}"></span><br>
application;<span th:text="${application.app}"></span>
</body>
</html>